package cc.taofoo.Design.AbstractFactory;

import cc.taofoo.utils.XMLUtils;

public class Client {
    public static void main(String[] args) {
        /**
         * config.xml
         * <abstract-factory>cc.taofoo.Design.AbstractFactory.Mac.MacFactory</abstract-factory>
         */
        AbstractFactory factory = (AbstractFactory) XMLUtils.getBeanFromXml("abstract-factory");
        CPU cpu = factory.productCpu();
        Ram ram = factory.productRam();
        System.out.println(cpu);
        System.out.println(ram);
    }
}
